﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BoxScore.Objetos;

namespace BoxScore.Estadisticas
{
    public partial class _estPitcheo : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public EstadisticasPitcheo getPitchingStadistics()
        {
            EstadisticasPitcheo _ps = new EstadisticasPitcheo();
            _ps.ip = double.Parse(this.p_ipTextBox.Text);
            _ps.cg = (this.p_checkcompletegame.Checked) ? 1 : 0;
            _ps.savedgame = (p_checksavedgame.Checked) ? 1 : 0;
            _ps.h = int.Parse(this.P_hTextBox.Text);
            _ps.h2 = int.Parse(p_h2TextBox.Text);
            _ps.h3 = int.Parse(p_h3TextBox.Text);
            _ps.hr = int.Parse(p_hrTextBox.Text);
            _ps.run = int.Parse(p_runTextBox.Text);
            _ps.erun = int.Parse(p_erunTextBox.Text);
            _ps.bb = int.Parse(p_bbTextBox.Text);
            _ps.ibb = int.Parse(p_ibbTextBox.Text);
            _ps.so = int.Parse(p_soTextBox.Text);
            return _ps;
        
        }

    }

    
}